﻿<link rel="stylesheet" href="/assets/home/css/buy-complete.css">
<div class="weui-msg">
    <div class="weui-msg__icon-area">
        <img src="/assets/home/images/success.png" alt="">
    </div>
    <div class="weui-msg__text-area">
        <h2 class="weui-msg__title">购买完成</h2>
        <p class="weui-msg__desc">您可以在个人中心我的订单中查看，或者返回后买页面点击上方的视频播放观看视频</p>
    </div>
    <div class="weui-msg__opr-area">
        <p class="weui-btn-area">
            <a id="" href="{:url('home/subject/order',['busid' => $busid])}" class="weui-btn weui-btn_primary">查看订单</a>
            <a id="look" href="{:url('home/subject/details',['cid' => $cid])}"
                class="weui-btn weui-btn_default">返回购买页</a>
        </p>
    </div>
</div>
<script>
    $("#look").click(function () {
        $.ajax({
            url: `{:url('/home/Subject/details')}`,
            type: 'post',
            dataType: 'json',
            data: {
                code: `{$code}`,
            },
            success: function (success) {
                console.log(success);
            }
        })
    })
</script>